/**
 * @file ActionsLibrary.java
 * A static library class representing various medical procedures.  
 *
 * @author ApertureScience
 */
package aperturescience.libraries;

/**
 * This is a static class that holds a listing of all actions a doctor can perform on a patient
 */
public class ActionsLibrary
{
	// Array of names of all actions
	private static String[] action = {
		/* For Project */
		"Pain medication",
		"Fluid bolus",
		"Oxygen",
		"Metoprolol",
		"Narcan",
		/* Extraneous */
		// Scans
		"X-ray",
		"MRI",
		"CAT",
		// Blood Tests
		"Get Blood Test",
		// Pain Relievers
		"Morphine",
		"Tylenol"
	};
	public static final int LENGTH = action.length;
	
	/**
	 * Retrieves the name of action specified by the index  
	 *
	 * @param axn	an index of names
	 * @returns String from action at the index, if it is a valid index;
	 * 			otherwise returns null
	 */
	public static String getAction(int axn)
	{
		if(axn >= 0 && axn < LENGTH)
			return action[axn];
		return null;
	}
}
